package com.group.Enity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Data
@Component
@Scope("prototype")
public class PropertyInfo {

    private int id;
    private int type_id;
    private double money;
    private String startDate = "";
    private String endDate = "";
    private int status;
    private int house_id;
    private String remarks = "";

    @Autowired
    private House house = new House();
    @Autowired
    private PropertyType type = new PropertyType();
    @Autowired
    private Owner owner = new Owner();

}
